package org.hyacinth.user.api.pojo.request;

import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Data
public class UserInfoRegisterReq {
    @NotBlank(message = "用户名不能为空")
    @Length(max = 20, message = "用户名不能超过20")
    private String userName;

    @NotBlank(message = "密码不能为空")
    @Length(max = 20, message = "密码不能超过20")
    private String password;

    @NotBlank(message = "githubUrl不能为空")
    @Length(max = 64, message = "githubUrl不能超过20")
    private String githubUrl;

    @NotBlank(message = "邮箱不能为空")
    @Length(max = 20, message = "邮箱长度不能超过20")
    private String email;
}
